home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00b.txt
/
000094_icon-group-sender_Tue Oct 24 08:17:21 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9OFFtT14377
for icon-group-addresses; Tue, 24 Oct 2000 08:15:55 -0700 (MST)
Message-Id: <200010241515.e9OFFtT14377@baskerville.CS.Arizona.EDU>
From: Nevin Liber <nevin@spies.com>
Subject: Re: Icon beginner
To: icon-group@cs.arizona.edu
Date: Mon, 23 Oct 2000 18:30:48 -0700 (PDT)
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 516
Chris.D.Tenaglia@jci.com proudly exclaims:
> I like simple things like...
> procedure despace(str)
> new := ""
> every byte := !string do if byte ~== " " then new ||:= byte
> return new
> end
Another way I thought of doing it is like:
procedure despace(s)
s := string(s) | runerr(103, s)
while s[upto(' ', s)] := ""
return s
end
but this method would require a bit more explanation
(which I am leaving up to the reader for now).
--
Nevin ":-)" Liber <mailto:nevin@spies.com> (773) 961-2479